<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        table{
            border-collapse: collapse;
            width: 400px;
            height: 400px;
        }
    </style>
</head>
<body>
<table border="1">
    <caption>课程信息表</caption>
    <tr><th>ID</th><th>课程编号</th><th>课程名</th><th>学分</th><th>封面</th></tr>
    <tr th:each="cou:${courses}">
        <td th:text="${cou.id}">1</td>
        <td th:text="${cou.cno}">1001</td>
        <td th:text="${cou.cname}">aaa</td>
        <td th:text="${cou.points}">66</td>
        <td><img th:src="${cou.img}"/></td>
    </tr>
</table>
</body>
</html>